package com.nuoniu.sibanyun.mapper.po;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.bo.UnExecutedBo;
import com.nuoniu.sibanyun.entity.po.VPurchaseArrivalDetail;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * <p>
 * 采购到货单明细表 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2020-11-19
 */
public interface VPurchaseArrivalDetailMapper extends BaseMapper<VPurchaseArrivalDetail> {

    @Delete("delete from scp_receiving_detail where order_id=#{orderId}")
    void removeByOrderId(Long orderId);


    /**
     * 获取 采购退货 未执行数量 情况
     * @param companyId
     * @param accountId
     * @param inventoryIds
     * @return
     */
    List<UnExecutedBo> getRetUnExecuteQuantity( Integer companyId, Integer accountId ,String inventoryIds ,String warehouseIds);
}
